/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.facade.common;

import java.io.Serializable;

/**
 * 传递接口信息
 * 
 * @author wy
 * 
 * @param <T>
 */
public class Result<T> implements Serializable {

    /** serialVersionUID */
    private static final long  serialVersionUID  = 3528525569257256066L;

    public static final String DEFAULT_EXCEPTION = "UN_KNOWN_EXCEPTION";

    /** 处理状态 */
    private Boolean            isSuccess         = Boolean.TRUE;

    /** 结果码 */
    private String             resultCode;

    /** 结果信息 */
    private String             resultMsg;

    /** 传递数据 */
    private T                  data;

    /** 交易编号*/
    private String             tradeId;

    public String getTradeId() {
        return tradeId;
    }

    public void setTradeId(String tradeId) {
        this.tradeId = tradeId;
    }

    public Boolean getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(Boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
